Skip to content

Question Page Redesign – Binary + continuous body#4695

Draft
ncarazon wants to merge 6 commits into
feat/question-page-redesign-1st-iterationfrom
feat/question-page-redesign-2nd-iteration
Draft

Question Page Redesign – Binary + continuous body#4695
ncarazon wants to merge 6 commits into
feat/question-page-redesign-1st-iterationfrom
feat/question-page-redesign-2nd-iteration

Conversation

@ncarazon
Copy link
Copy Markdown
Contributor

@ncarazon ncarazon commented May 7, 2026

Closes #4642

…rt card & Timeline / Histogram toggle on binary bodies (#4692)

* feat: add QuestionHeaderCPStatus next to timeline for consumer binary questions

* fix: remove extra mt-8 top margin from consumer continuous timeline

* feat: add Timeline/Histogram toggle to binary detailed chart cards and fix consumer binary radial padding

* fix: resolve layout jumping between chart views, fix histogram full-width responsive scaling, and center binary radial charts on mobile

* fix: prevent chart layout snapping with synchronous measurements, enable side-by-side continuous charts on sm breakpoints, and standardize spacing utility classes

* fix: show fallback message when histogram tab has no data
@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented May 7, 2026

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 7f692efe-3c0f-4fbb-900a-f9e058031493

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feat/question-page-redesign-2nd-iteration

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@ncarazon ncarazon changed the title Mount consumer binary + continuous side-by-side with the detailed cha… Question Page Redesign – Binary + continuous body May 7, 2026
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 7, 2026

🚀 Preview Environment

Your preview environment is ready!

Resource Details
🌐 Preview URL https://metaculus-pr-4695-feat-question-page-redesign-2n-preview.mtcl.cc
📦 Docker Image ghcr.io/metaculus/metaculus:feat-question-page-redesign-2nd-iteration-df30316
🗄️ PostgreSQL NeonDB branch preview/pr-4695-feat-question-page-redesign-2n
Redis Fly Redis mtc-redis-pr-4695-feat-question-page-redesign-2n

Details

  • Commit: 1a5a9640de86e44802250e566607bf1a1d716caf
  • Branch: feat/question-page-redesign-2nd-iteration
  • Fly App: metaculus-pr-4695-feat-question-page-redesign-2n

ℹ️ Preview Environment Info

Isolation:

  • PostgreSQL and Redis are fully isolated from production
  • Each PR gets its own database branch and Redis instance
  • Changes pushed to this PR will trigger a new deployment

Limitations:

  • Background workers and cron jobs are not deployed in preview environments
  • If you need to test background jobs, use Heroku staging environments

Cleanup:

  • This preview will be automatically destroyed when the PR is closed

* feat: live cursor updates left-panel value, range, and distribution for continuous consumer view, with dot indicator on timeline and no tooltip/dashed line in consumer mode

* feat: animate consumer mobile mini chart on timeline cursor and fix mobile tooltip position tracking

* fix: always serialize full forecast_values in aggregation history for cursor-time distribution animation

* fix: memoize cursorChartData to skip cdfToPmf recalculation when forecast_values reference is unchanged

* fix: resolve cursor dot color override through resolveToCssColor

* refactor: lazily fetch full aggregation history from aggregation explorer on pointer enter for continuous consumer cursor animation, keeping posts endpoint lightweight

* fix: pass include_bots_in_aggregates to aggregation explorer to match stored aggregation bot semantics, format aggregate_forecasts.py

* fix: use stable setActiveForecast reference in effect deps to prevent infinite re-render loop on hover
* fix: handle hideCP, cpRevealsOn, and isEmpty in the side-by-side left card for binary and continuous questions

* fix: handle isEmpty, cpRevealsOn, and hideCP states in the side-by-side layout left panel and fix title overflow onto the CP block

* fix: refine mobile hidden-CP states for binary and continuous in the forecaster title row and left panel

* fix: prevent CP status from being squeezed off-screen in the mobile title row

* fix: restore "No forecasts yet" overlay in feed cards and suppress it on the question detail page

* fix: wire hideCP, cpRevealsOn, and isEmpty states into all question-type left panels for the side-by-side layout

* fix: replace hardcoded isEmpty:false with suppressEmptyOverlay prop, fix missing useMemo deps, and align binary cpRevealsOn state with continuous

* fix: correct import order in continuous_question_prediction.tsx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant